package com.tmsps.common.config;

import com.tmsps.ne4spring.base.BaseMySQLService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName BaseServiceAutoConfiguration
 * @description 自动注入Ne4Spring
 * @author geek
 * @date 2020年06月30日 13:54
 */
@Configuration
public class BaseServiceAutoConfiguration {

    @Bean("baseMySQLService")
    @ConditionalOnMissingBean(name="baseMySQLService")
    public BaseMySQLService baseService(){
        return new BaseMySQLService();
    }
}
